package com.rraj.controller;

//import com.rraj.common.domain.ResultBody;
import com.rraj.common.domain.ResultBody;
import com.rraj.service.TestComService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by hqm on 2017/11/13.
 */
@RestController
@RequestMapping("/com")
@Api(value="TestController",description = "测试相关")
public class TestControllerFeign {

   @Autowired
    private TestComService testComService;

    @RequestMapping(value = "/test/test",method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value = "测试Test接口")
    public Object getTest(@ApiParam @RequestParam("name") String name){
        ResultBody resultBody = new ResultBody();
        resultBody.setData(name);

        return Boolean.TRUE;
    }

}
